package com.gitee.wsl.platform.exception

import com.gitee.wsl.platform.platformPrintErr
import platform.posix.abort

internal actual fun createDefaultUncaughtErrorHandler(): (Throwable) -> Unit = { e ->
    platformPrintErr("Uncaught exception: $e")
    e.printStackTrace()
    abort()
}

internal actual fun Throwable.isFatal(): Boolean = false
